package com.demo;
import com.metnods.NonMotor;
import com.metnods.Tricycle;
import com.metnods.ElectricVehicle;
import com.metnods.Bicycle;
/**
 * 测试类
 * 2017-08-15
 * @author Erik
 * @version 0.1
 * @see com.metnods.Tricycle
 * @see NonMotor
 * @see com.metnods.Bicycle
 * @see com.metnods.ElectricVehicle
 * @since JDK1.8
 */
public class Test {

    public static void main(String[] args) {
        NonMotor nonMotor = new NonMotor("天宇牌", "红", 4, 2);
        Bicycle bicycle = new Bicycle("捷安特", "黄");
        ElectricVehicle electricVehicle = new ElectricVehicle("飞鸽牌");
        Tricycle tricycle = new Tricycle(3);

        System.out.print("父类信息测试：");
        System.out.println( nonMotor.work());

        System.out.print("自行车类信息测试：");
        System.out.println( bicycle.work());

        System.out.print("电动车类信息测试：");
        System.out.println( electricVehicle.work());

        System.out.print("三轮车类信息测试：");
        System.out.println( tricycle.work());
    }

}
